{
数据结构 解题报告：
http://git.oschina.net/et0662/sznoi-Data_Structure
}
var
	c:char;
begin
	while not eoln do
	begin
		read(c);
		if (ord('a') <=ord(c)) and (ord(c) <=ord('z')) then
			write(chr(ord('z')-ord(c)+ord('a')))
		else if (ord('A') <=ord(c)) and (ord(c) <=ord('Z')) then
			write(chr(ord('Z')-ord(c)+ord('A')))
		else
			write(c);
	end;
end.
